package com.fs.alert.domain.po;

import com.baomidou.mybatisplus.annotation.*;
import com.fs.api.enumeration.AlertStatus;
import com.fs.api.enumeration.AlertType;
import com.fs.api.enumeration.EmergencyLevel;
import com.fs.api.enumeration.ProcessResult;
import lombok.*;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("alert")
public class Alert {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String alertNo;
    private AlertType alertType;
    private String location;
    private LocalDateTime alertTime;
    private AlertStatus status;
    private EmergencyLevel emergencyLevel;
    private String environmentDesc;
    private String dangerousGoods;
    private String incidentDesc;
    private String processDesc;
    private Integer responseTime;
    private Integer processTime;
    private ProcessResult isSuccess;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedTime;
}